package name.jiaosha.air.company.service;

import java.util.List;

import name.jiaosha.air.company.domain.Part;
import name.jiaosha.air.company.domain.PartPackage;
import name.jiaosha.air.system.domain.Goods;
import name.jiaosha.air.system.domain.Product;

import com.ali8ba.common.PageInfo;

public interface IGoodsService {

	/**
	 * 增加配件
	 * @param part
	 */
	public void createPart(Part part);
	
	public void updatePart(Part part);
	
	public Part getPartById(int id);
	
	public PageInfo<Part> getPartListByComId(Integer comId, int index,
			int pageSize);
	/**
	 * 增加商品
	 * @param product
	 */
	public void createProduct(Product product);
	
	public Product getProductById(int id);
	
	public void updateProduct(Product product);
	
	public PageInfo<Product> getProductListByComId(Integer comId, int index,
			int pageSize);
	
	public PageInfo<Goods> getGoodsListByComId(Integer comId, int index,
			int pageSize);
	
	public List<PartPackage> getPartPackageByPartId(Integer partId);
	
	public Goods getGoodsById(int id);
}
